/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ht7;

import structure5.RedBlackTree;

/**
 *
 * @author Josu? Barrientos - 09049
 */
public class WordRedBlackTree implements WordSet {
    
    private RedBlackTree<Word> arbolrojinegro;
    
    public WordRedBlackTree(){
        arbolrojinegro=new RedBlackTree(new Word());        
    }
    
    @Override
    public void add(Word wordObject) {
        arbolrojinegro=arbolrojinegro.add(wordObject);
    }

    @Override
    public Word get(Word word) {
       return arbolrojinegro.get(word);
    }

}